package com.ruoyi.sj.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 朋友圈动态表 sj_dynamic
 * 
 * @author tyc@yanyu.com
 * @date 2018-11-28
 */
public class Dynamic extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Long id;
	/** 用户id */
	private Long memberId;
	/** 内容 */
	private String content;
	/** 图片或者视频 */
	private String picture;
	/** 评论数量 */
	private Long commentsNum;
	/** 发布时间 */
	private String createDate;
	/** 创建人 */
	private String createBy;
	/**  */
	private String updateBy;
	/**  */
	private String updateDate;
	/**  */
	private String remark;
	private String avatar;
	private String nickname;

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	private List<Comments> commentsList; //评论
	private List<GiveLike> giveLikeList;//点赞

	public List<Comments> getCommentsList() {
		return commentsList;
	}

	public void setCommentsList(List<Comments> commentsList) {
		this.commentsList = commentsList;
	}

	public List<GiveLike> getGiveLikeList() {
		return giveLikeList;
	}

	public void setGiveLikeList(List<GiveLike> giveLikeList) {
		this.giveLikeList = giveLikeList;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setMemberId(Long memberId) 
	{
		this.memberId = memberId;
	}

	public Long getMemberId() 
	{
		return memberId;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setPicture(String picture) 
	{
		this.picture = picture;
	}

	public String getPicture() 
	{
		return picture;
	}
	public void setCommentsNum(Long commentsNum) 
	{
		this.commentsNum = commentsNum;
	}

	public Long getCommentsNum() 
	{
		return commentsNum;
	}
	public void setCreateBy(String createBy)
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(String updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemark()
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("content", getContent())
            .append("picture", getPicture())
            .append("commentsNum", getCommentsNum())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
